package com.Lyoto.util.weixin.config;

import com.Lyoto.util.weixin.utils.YmlUtil;
import lombok.Data;
import org.yaml.snakeyaml.Yaml;

/**
 * @author Lyoto
 * @Description 微信api配置文件
 * @Date 2022-09-20 9:53
 * @Version
 **/
public class ApiConfig {
    public static String appId = YmlUtil.getByTag("weixin.appid");
    public static String secret = YmlUtil.getByTag("weixin.secret");
    public static String adminId = YmlUtil.getByTag("weixin.admin_id");
    
    public static String fetchIpTemplateId = YmlUtil.getByTag("weixin.message.template.template_ids.fetch_ip");
   
   public static class URL{
       public final static String accessTokenApi = YmlUtil.getByTag("weixin.api","weixin.access_token");
       public static final String templateMessageSendApi = YmlUtil.getByTag("weixin.api","weixin.message.path.send");
   }
}
